package com.demo.websocket.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Result<T> {
    private int status;
    private String msg;
    private Integer page;
    private Long time;
    private Integer type;
    private T data;

    public Result(int status, String msg, Integer type, Long time) {
        this.status = status;
        this.msg = msg;
        this.time = time;
        this.type = type;
    }

    public Result(int status, String msg, Integer page, Long time, T data) {
        this.status = status;
        this.msg = msg;
        this.page = page;
        this.time = time;
        this.data = data;
    }
}
